package com.chase.framerwork.exception;

/**
 * 业务Exception,业务提示信息应该使用该异常
 * 
 * @author Chase
 * 
 */
public class BusException extends RuntimeException
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -3858969602927135737L;

	/**
	 * 错误码
	 */
	private String code;

	/**
	 * 提示信息
	 */
	private String message;

	/**
	 * 包含提示信息的构造方法
	 * 
	 * @param message
	 */
	public BusException(String message)
	{
		super(message);

		this.message = message;
	}

	/**
	 * 包含错误码和提示信息的构造方法
	 * 
	 * @param code
	 * @param message
	 */
	public BusException(String code, String message)
	{
		super(message);

		this.code = code;
		this.message = message;
	}

	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public String getMessage()
	{
		return message;
	}

	public void setMessage(String message)
	{
		this.message = message;
	}
}
